#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include<QListWidget>
#include"ThreadPool.h"

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = nullptr);
    ~Dialog();
    //初始化窗口
    bool InitWindow();
    ThreadPool* _pool;

signals:
    void emitStartATask(uint id);
    void emitContinueATask(uint id);

public slots:
    void slotOkPushbuttonOnClick();
    void slotActionOnClickDelete();
    void slotActionOnClickPause();
    void slotActionOnClickStart();
    void slotAllStart();
    void sloatAllPause();
    void slotAllEnd();

private:
    Ui::Dialog  *ui = nullptr;

};

#endif // DIALOG_H
